import request from '@/utils/request'

// 查询机泵信息列表
export function listDispatchPumps(query) {
  return request({
    url: '/system/dispatchPumps/list',
    method: 'get',
    params: query
  })
}

// 查询机泵信息详细
export function getDispatchPumps(pumpId) {
  return request({
    url: '/system/dispatchPumps/' + pumpId,
    method: 'get'
  })
}

// 新增机泵信息
export function addDispatchPumps(data) {
  return request({
    url: '/system/dispatchPumps',
    method: 'post',
    data: data
  })
}

// 修改机泵信息
export function updateDispatchPumps(data) {
  return request({
    url: '/system/dispatchPumps',
    method: 'put',
    data: data
  })
}

// 删除机泵信息
export function delDispatchPumps(pumpId) {
  return request({
    url: '/system/dispatchPumps/' + pumpId,
    method: 'delete'
  })
}
